all:
	rm -rf *~ *.o *.elf
	cp ofwboot_kernel.prx ../ofwbooter/ofwboot_kernel.prx
	psp-build-exports -s exports.exp
	cp dxemBoot.S ../ofwbooter/dxemBoot.S

TARGET = ofwboot_kernel
OBJS = main.o

INCDIR =
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

BUILD_PRX = 1
PRX_EXPORTS = exports.exp

USE_KERNEL_LIBC=1
USE_KERNEL_LIBS=1

LIBDIR =
LDFLAGS = -mno-crt0 -nostartfiles
LIBS = -lpspkernel -lpspsystemctrl_kernel -lpspkubridge


PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak